package com.lucky.common.mapper;

import com.lucky.common.pojo.po.RolePO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper extends com.baomidou.mybatisplus.core.mapper.BaseMapper<RolePO> {
	
	@Select("select * from m_user_role t where t.role_code = #{roleCode} ")
	public RolePO getRole(String roleCodes);

	//获取角色name
	public List<String> queryRoleNames(@Param("userCode") String userCode);

	//获取角色code
	public List<String> queryRoles(@Param("userCode") String userCode);

}
